<div class="amp-container">
  <h3 class="amp-header"><?php echo $action_title; ?></h3>

  <?php while ($obj = $data->next()) { ?>
  <div class="amp-content">
    <?php
    $elements->reset();

    while ($element = $elements->next()) {
      echo $element->render($obj, $action);
    }
    ?>

    <nav class="amp-toolbar-container">
      <ul class="amp-toolbar">
        <li class="amp-toolbar-item"><a href="<?php echo Simplify::response()->makeUrl(Simplify::request()->route(), array('action' => 'edit', $pk=>$obj->$pk)) ?>"><?php echo $this->icon->show('edit') ?></a></li>
        <?php if ($obj->$pk) { ?>
        <li class="amp-toolbar-item"><a href="<?php echo Simplify::response()->makeUrl(Simplify::request()->route(), array('action' => 'delete', $pk=>$obj->$pk)) ?>"
          onclick="return confirm('Confirma a remoção deste registro?');"><?php echo $this->icon->show('remove') ?></a></li>
        <?php } ?>
      </ul>
    </nav>

    <div style="clear:both;"></div>
  </div>
  <?php } ?>
</div>